import request from "../utils/request"

export function getNewsList(pageNum, pageSize,categoryId, title='') {
    const params = new URLSearchParams();
    params.append("pageNum", pageNum);
    params.append("pageSize", pageSize);
    if (categoryId){
        params.append("categoryId", categoryId);

    }

    params.append("title", title);
    return request.post("https://showme.myhope365.com/api/cms/article/open/list", params)
}
